
package com.be.beadmin.quality.service;

import com.be.beadmin.common.entity.PageEntity;
import com.be.beadmin.quality.dto.input.CabinetErrorDto;
import com.be.beadmin.quality.dto.input.CabinetQualityDto;
import com.be.beadmin.quality.dto.output.CabinetQualityEx;
import com.be.beadmin.quality.entity.CabinetError;
import com.be.beadmin.quality.entity.CabinetQuality;
import org.springframework.data.domain.Page;

import java.util.List;

/**
* @description 服务接口
* @author zjm
* @date 2023-05-15
**/
public interface CabinetQualityService {

    /**
    * 分页的查询接口
    * @param pageEntity
    * @return
    */
    Page<CabinetQualityEx> getCabinetQualityByPage(PageEntity pageEntity);

    /**
    * @param cabinetQualityDto
    */
    void addCabinetQuality(CabinetQualityDto cabinetQualityDto);

    /**
    * @param cabinetQualityDto
    */
    void updateCabinetQuality(CabinetQualityDto cabinetQualityDto);

    /**
    * @param id
    */
    void delCabinetQuality(String id);

    /**
    * 删除多个角色
    * @param ids
    */
    void delCabinetQualitys (List<String> ids);

    /**
     * 新增接线主表和错误子表
     */
    void addCabinetQualityAndCabinetError(CabinetQualityDto cabinetQualityDto, CabinetErrorDto[] cabinetErrorDtos);

    void editCabinetQualityAndCabinetError(CabinetQualityDto cabinetQualityDto, CabinetErrorDto[] cabinetErrorDtos);

    /**
     * 根据工单号获取接线质量填报相关信息
     * @param wo
     * @return
     */
    CabinetQuality getCabinetQualityInformationByWo(String wo);
}